Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

code

Hello,

here is some sample code:

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim docMail, doc As NotesDocument
Dim success As Boolean
Dim collection As NotesDocumentCollection
Dim rtitem As NotesRichTextItem

Set db = session.CurrentDatabase
Set docMail = db.CreateDocument
Set collection = db.UnprocessedDocuments

If (Not collection Is Nothing) Then
Set doc = collection.getFirstDocument
End If

docMail.Form="Memo"
docMail.principal = doc.docAuthor
docMail.SendTo = doc.DistributionList
docMail.Subject = "A new document has been created: " + doc.Title_EN(0)

Set rtitem = New NotesRichTextItem ( docMail, "Body" )
call rtitem.Appendtext("A new document has been created. Click on the link to open the document: ")
Call rtitem.Appenddoclink(doc,"Doc","")

Call docMail.Send( False )
End Sub


Simply use doc.fieldname to add content of your field.
For example doc.Title_EN(0) is one of the form's fields.


Hope this answers your question.


Feedback response number WEBB8M3EY4 created by ~George Pregerosterobu on 09/26/2011

Sending contents of a field in an e... (~Elizabeth Nonf... 26.Sep.11)
. . code (~George Pregero... 26.Sep.11)
. . . . Thanks, but... (~Elizabeth Nonf... 26.Sep.11)
. . . . . . errors (~George Pregero... 26.Sep.11)
. . . . . . . . You're right (~Elizabeth Nonf... 26.Sep.11)
. . . . . . . . . . This should work with a button in t... (~George Pregero... 26.Sep.11)
. . . . . . . . . . . . Thanks! (~Elizabeth Nonf... 26.Sep.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS